package org.br.erp.base.creditcheckrule.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @Description: 信贷检查规则分录
 * @Author: jeecg-boot
 * @Date:   2024-03-26
 * @Version: V1.0
 */
@ApiModel(value="scmcreditcheckruleitem对象", description="信贷检查规则分录")
@Data
@TableName("scmcreditcheckruleitem")
@Entity
public class Scmcreditcheckruleitem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    @Id
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**业务对象*/
	@Excel(name = "业务对象", width = 15)
    @ApiModelProperty(value = "业务对象")
    private String objectid;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
    @ApiModelProperty(value = "单据类型")
    private String typeid;
	/**检查及更新节点*/
	@Excel(name = "检查及更新节点", width = 15)
    @ApiModelProperty(value = "检查及更新节点")
    private String checkpoint;
	/**控制强度*/
	@Excel(name = "控制强度", width = 15)
    @ApiModelProperty(value = "控制强度")
    private String controlinfo;
	/**更新信用额度*/
	@Excel(name = "更新信用额度", width = 15)
    @ApiModelProperty(value = "更新信用额度")
    private String updatecreditvalueflag;
	/**检查信用额度*/
	@Excel(name = "检查信用额度", width = 15)
    @ApiModelProperty(value = "检查信用额度")
    private String checkcreditvalueflag;
	/**检查信用比例*/
	@Excel(name = "检查信用比例", width = 15)
    @ApiModelProperty(value = "检查信用比例")
    private String checkcreditratioflag;
	/**检查单笔限额*/
	@Excel(name = "检查单笔限额", width = 15)
    @ApiModelProperty(value = "检查单笔限额")
    private String checkcreditsigleflag;
	/**检查逾期天数*/
	@Excel(name = "检查逾期天数", width = 15)
    @ApiModelProperty(value = "检查逾期天数")
    private String checkcreditdayflag;
	/**检查逾期额度*/
	@Excel(name = "检查逾期额度", width = 15)
    @ApiModelProperty(value = "检查逾期额度")
    private String checkcreditdayvalueflag;
	/**检查逾期额度比例*/
	@Excel(name = "检查逾期额度比例", width = 15)
    @ApiModelProperty(value = "检查逾期额度比例")
    private String checkcreditdayvalueratioflag;
	/**超标判断依据*/
	@Excel(name = "超标判断依据", width = 15)
    @ApiModelProperty(value = "超标判断依据")
    private String overcreditcheckmethod;
	/**parentid*/
    @ApiModelProperty(value = "parentid")
    private String parentid;

    /**
     * 信贷方向
     * 0 占用信贷
     * 1 释放信贷
     */
    @Column(length = 10)
    private String creditdirection;
}
